package orm.jpa.first.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class ZipCode {
	
	@Column(name = "ZipCode")
	private int zipCode;
	

	public ZipCode() {
		super();
	}
	
	public ZipCode(int zipCode) {
		this.zipCode = zipCode;
	}

	public int getZipCode() {
		return zipCode;
	}

	public void setZipCode(int zipCode) {
		this.zipCode = zipCode;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ZipCode [zipCode=").append(zipCode).append("]");
		return builder.toString();
	}

}
